home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / metasploit / src / passivex / PassiveX.idl < prev    next >
Text File  |  2006-06-30  |  2KB  |  58 lines

  1. import "oaidl.idl";
  2. import "ocidl.idl";
  3.  
  4. enum PassiveXProperties
  5. {
  6.     PASSIVEX_PROPERTY_HTTP_HOST             = 1,
  7.     PASSIVEX_PROPERTY_HTTP_PORT             = 2,
  8.     PASSIVEX_PROPERTY_DOWNLOAD_SECOND_STAGE = 3,
  9. };
  10.  
  11. [
  12.     object,
  13.     uuid(1940F02F-41B0-4d92-BE34-DA55D151893A),
  14.     helpstring("IPassiveX"),
  15.     pointer_default(unique),
  16.     dual
  17. ]
  18. interface IPassiveX : IDispatch
  19. {
  20.     [propput, id(PASSIVEX_PROPERTY_HTTP_HOST)] HRESULT HttpHost([in] BSTR host);
  21.     [propget, id(PASSIVEX_PROPERTY_HTTP_HOST)] HRESULT HttpHost([out, retval] BSTR *host);
  22.     [propput, id(PASSIVEX_PROPERTY_HTTP_PORT)] HRESULT HttpPort([in] ULONG port);
  23.     [propget, id(PASSIVEX_PROPERTY_HTTP_PORT)] HRESULT HttpPort([out, retval] ULONG *port);
  24.     [propput, id(PASSIVEX_PROPERTY_DOWNLOAD_SECOND_STAGE)] HRESULT DownloadSecondStage([in] ULONG na);
  25.     [propget, id(PASSIVEX_PROPERTY_DOWNLOAD_SECOND_STAGE)] HRESULT DownloadSecondStage([out, retval] ULONG *na);
  26. };
  27.  
  28. [
  29.     uuid(CA8B739E-450C-47bb-A557-3579A633BB5D),
  30.     version(1.0),
  31.     helpstring("PassiveX Type Library")
  32. ]
  33. library PassiveXCOM
  34. {
  35.     importlib("stdole32.tlb");
  36.     importlib("stdole2.tlb");
  37.  
  38.     [
  39.         uuid(9A427004-996C-4d39-BF55-F7EBE0EC6249),
  40.         helpstring("PassiveX Event Interface")
  41.     ]
  42.     dispinterface PassiveXEvents
  43.     {
  44.         properties:
  45.         methods:
  46.     };
  47.  
  48.     [
  49.         uuid(B3AC7307-FEAE-4e43-B2D6-161E68ABA838),
  50.         helpstring("PassiveX Implementation Class")
  51.     ]
  52.     coclass PassiveX
  53.     {
  54.         [default] interface IPassiveX;
  55.         [default, source] dispinterface PassiveXEvents;
  56.     };
  57. };
  58.